From d12666b81882e32b122b2f39f36717649d4852f1 Mon Sep 17 00:00:00 2001 From: David Kastrup Date: Sun, 4 Mar 2007 08:41:08 +0000 Subject: [PATCH] * NEWS (fontification): Mention that the new default for jit-lock-stealth-time is now nil. * jit-lock.el (jit-lock-stealth-time): Change default to nil. Preserve 16 as default value for "seconds" when customizing. --- etc/ChangeLog | 5 +++++ etc/NEWS | 14 ++++++++++---- lisp/ChangeLog | 5 +++++ lisp/jit-lock.el | 4 ++-- 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/etc/ChangeLog b/etc/ChangeLog index fb10d5367d7..fbf63ec13b0 100644 --- a/etc/ChangeLog +++ b/etc/ChangeLog @@ -1,3 +1,8 @@ +2007-03-04 David Kastrup + + * NEWS (fontification): Mention that the new default for + jit-lock-stealth-time is now nil. + 2007-03-01 Kim F. Storm * ORDERS: Reformat text. diff --git a/etc/NEWS b/etc/NEWS index 763faf4fe9c..b229630fe0a 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -1055,10 +1055,16 @@ cperl-mode and make-mode support this. --- *** The default settings for JIT stealth lock parameters are changed. -The default value for the user option jit-lock-stealth-time is now 16 -instead of 3, and the default value of jit-lock-stealth-nice is now -0.5 instead of 0.125. The new defaults should lower the CPU usage -when Emacs is fontifying in the background. +The default value for the user option jit-lock-stealth-time is now nil +instead of 3. This setting of jit-lock-stealth-time disables stealth +fontification: on today's machines, it may be a bug in font lock +patterns if fontification otherwise noticeably degrades interactivity. +If you find movement in infrequently visited buffers sluggish (and the +major mode maintainer has no better idea), customizing +jit-lock-stealth-time to a non-nil value will let Emacs fontify +buffers in the background when it considers the system to be idle. +jit-lock-stealth-nice is now 0.5 instead of 0.125 which is supposed to +cause less load than the old defaults. --- *** jit-lock can now be delayed with `jit-lock-defer-time'. diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 10a289d237c..f1a0904d2a3 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2007-03-04 David Kastrup + + * jit-lock.el (jit-lock-stealth-time): Change default to nil. + Preserve 16 as default value for "seconds" when customizing. + 2007-03-04 Carsten Dominik * textmodes/org.el (org-self-insert-command) diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el index 958bb679832..0471edb7891 100644 --- a/lisp/jit-lock.el +++ b/lisp/jit-lock.el @@ -74,14 +74,14 @@ This variable controls both display-time and stealth fontification." :group 'jit-lock) -(defcustom jit-lock-stealth-time 16 +(defcustom jit-lock-stealth-time nil "*Time in seconds to wait before beginning stealth fontification. Stealth fontification occurs if there is no input within this time. If nil, stealth fontification is never performed. The value of this variable is used when JIT Lock mode is turned on." :type '(choice (const :tag "never" nil) - (number :tag "seconds")) + (number :tag "seconds" :value 16)) :group 'jit-lock) -- 2.30.2